package export

import (
	"github.com/lab-online/internal/class/interface/export"
	"github.com/lab-online/internal/shared/valueobject"
)

type Class struct {
	repository Repository
}

func New(repository Repository) export.ClassService {
	return &Class{repository}
}

func (c *Class) GetClassByID(id uint) (valueobject.ClassVO, error) {
	return c.repository.GetClassByID(id)
}

func (c *Class) CheckClassIncludeStudent(class uint, student string) (bool, error) {
	return c.repository.CheckClassIncludeStudent(class, student)
}
